import request from "@/utils/request";

export function queryPage(data) {
  return request({
    url: "/projectRole/queryPage",
    method: "post",
    data
  })
}

export function queryList(data) {
  return request({
    url: "/projectRole/queryList",
    method: "get",
    params: data
  })
}

export function insertByModel(data) {
  return request({
    url: "/projectRole/insertByModel",
    method: "post",
    data
  })
}

export function updateByModel(data) {
  return request({
    url: "/projectRole/updateByModel",
    method: "post",
    data
  })
}

export function deleteByModel(data) {
  return request({
    url: "/projectRole/delete",
    method: "post",
    data
  })
}


export function queryRoleToTag(data) {
  return request({
    url: "/projectRole/queryRoleToTag",
    method: "get",
    data
  })
}

export function saveRoleToTag(data) {
  return request({
    url: "/projectRole/saveRoleToTag",
    method: "post",
    data: data
  })
}
